package com.usian.apis.behavior;

import com.usian.model.behavior.dtos.UnLikesBehaviorDto;
import com.usian.model.behavior.pojos.ApUnlikesBehavior;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface ApUnLikesBehaviorControllerApi {
    @PostMapping
    //点赞与取消点赞的接口
    public ResponseResult like(@RequestBody UnLikesBehaviorDto dto);
    /**
     * 根据行为实体id和文章id查询不喜欢行为
     * @param entryId
     * @param articleId
     * @return
     */
    ApUnlikesBehavior findUnLikeByArticleIdAndEntryId(Integer entryId, Long articleId);
}
